Index | Diary 2024-04-21

C++ 支持函数重载, C 不支持 编译后在库中的名字不同

    void foo(int x, int y)
    
    _foo    # C 编译后
    _foo_int_int  # C++编译器
    

extern "C" 解决名字匹配问题